package com.wisdudu.blank.data.bean;


import com.wisdudu.frame.support.util.TimeUtil;

import java.io.Serializable;

/**
 * 6.1
 * Created by wk on 2016/3/10 0010.
 * CityWeather子节点类
 */
public class CltyWD implements Serializable {
    //    -- date 时间与实时温度
    private String date;
    //    -- dayPictureUrl 白天天气图标
    private String dayPictureUrl;
    //    -- nightPictureUrl 晚上天气图标
    private String nightPictureUrl;
    //    -- weather 天气
    private String weather;
    //    -- wind 风级与风向
    private String wind;
    //    -- temperature 温度区间
    private String temperature;

    public String getPic() {
        if (TimeUtil.getNowHour() >= 6 && TimeUtil.getNowHour() < 18) {
            return dayPictureUrl;
        } else {
            return nightPictureUrl;
        }
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getDayPictureUrl() {
        return dayPictureUrl;
    }

    public void setDayPictureUrl(String dayPictureUrl) {
        this.dayPictureUrl = dayPictureUrl;
    }

    public String getNightPictureUrl() {
        return nightPictureUrl;
    }

    public void setNightPictureUrl(String nightPictureUrl) {
        this.nightPictureUrl = nightPictureUrl;
    }

    public String getWeather() {
        return weather;
    }

    public void setWeather(String weather) {
        this.weather = weather;
    }

    public String getWind() {
        return wind;
    }

    public void setWind(String wind) {
        this.wind = wind;
    }

    public String getTemperature() {
        return temperature;
    }

    public void setTemperature(String temperature) {
        this.temperature = temperature;
    }
}
